package com.pxst.demo.amq;

import java.util.Map;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

import lombok.extern.slf4j.Slf4j;

/** 
 * APP捞帐消息消费者
* @author yangxy
* @version 创建时间：2023年9月4日 上午11:23:35 
*/
@Slf4j
@Component
public class AmqSalvageConsumer {
	
	@RabbitListener(queues = "#{delayAppQueue.name}",concurrency = "10")
	@SuppressWarnings("unchecked")
	public void listener(String message) {
		log.info("延迟队列监听：{}",message);
		JSONObject parseObject = JSON.parseObject(message);
		Map<String,Object> javaObject = JSON.toJavaObject(parseObject, Map.class);
		
		//调用迅银捞帐接口
	}
}
